$OpenBSD: patch-configure_in,v 1.15 2015/06/28 13:33:07 bcallah Exp $
--- configure.in.orig	Sat Jun 27 16:35:27 2015
+++ configure.in	Sat Jun 27 16:37:50 2015
@@ -58,7 +58,7 @@ dnl FLTK library versions...
 FL_MAJOR_VERSION=1
 FL_MINOR_VERSION=3
 FL_PATCH_VERSION=3
-FL_API_VERSION=${FL_MAJOR_VERSION}.${FL_MINOR_VERSION}
+FL_API_VERSION=${LIBfltk_VERSION}
 
 AC_SUBST(FL_MAJOR_VERSION)
 AC_SUBST(FL_MINOR_VERSION)
@@ -910,7 +910,7 @@ case $host_os_gui in
 	    AC_MSG_WARN(Ignoring libraries \"$X_PRE_LIBS\" requested by configure.)
 	fi
 
-	LIBS="$LIBS -lX11 $X_EXTRA_LIBS"
+	LIBS="$LIBS -lX11 -lXdmcp -lXau $X_EXTRA_LIBS"
 	CFLAGS="$CFLAGS $X_CFLAGS"
 	CXXFLAGS="$CXXFLAGS $X_CFLAGS"
 	LDFLAGS="$X_LIBS $LDFLAGS"
@@ -1165,7 +1165,7 @@ if test -n "$GCC"; then
         if test "x$with_optim" != x; then
 	    OPTIM="$with_optim $OPTIM"
 	else
-            OPTIM="-Os $OPTIM"
+            : # OPTIM="-Os $OPTIM"
 	fi
     fi
 
